import assessCheckApi from './api'
import { axios } from '@/utils/request'

export function dict(val) {
  return axios({
    url: assessCheckApi.dict,
    params: {dictName:val},
    method: "GET",
    url_1:'outside'
  })
}

// 我的延聘解聘历史-分页查询
export function queryYpjpLsPageList(params){
  return axios({
    url: assessCheckApi.queryYpjpLsPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 查询当前申请信息
export function querySqInfo(params){
  return axios({
    url: assessCheckApi.querySqInfo,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 查询我的暂存-解聘信息
export function queryWdZcjpxx(params){
  return axios({
    url: assessCheckApi.queryWdZcjpxx,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 查询我的暂存-延聘信息
export function queryWdZcypxx(params){
  return axios({
    url: assessCheckApi.queryWdZcypxx,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// // 查询当前申请信息
// export function querySqInfo(params){
//   return axios({
//     url: assessCheckApi.querySqInfo,
//     method:'get',
//     params:{...params},
//     url_1:'outside',
//   })
// }

// 保存申请-暂存
export function bcsqZc(data){
  return axios({
    url: assessCheckApi.bcsqZc,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 提交申请
export function submitSq(data){
  return axios({
    url: assessCheckApi.submitSq,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 提交审核
export function submitSh(data){
  return axios({
    url: assessCheckApi.submitSh,
    method:'post',
    data:data,
    url_1:'outside',
  })
}
